package cn.itsource.rpms.util;

import lombok.Data;

@Data
public class AjaxResult {
    private Boolean success = true;

    private String massage;

    public AjaxResult(Boolean success, String massage) {
        this.success = success;
        this.massage = massage;
    }

    public AjaxResult(String massage) {
        this.success=false;
        this.massage = massage;
    }

    public AjaxResult(Boolean success) {
        this.success = success;
        if(success){
            this.massage="操作成功";
        }

    }

    public AjaxResult() {
        this.massage="操作成功";
    }
}
